package com.qrxl.common.service;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 文件存储接口
 *
 * @author zhoukun
 */
public interface IFileStoreService extends IFileService {

    /**
     * 将文件边读边写到response中
     *
     * @param response
     * @param path     以“/oss/upload”开头  如：/oss/upload/facePicture/2019-06-27/22a67c2539bc422098019f3cf04c5ae0.jpg
     */
    void writeData(HttpServletResponse response, String path) throws IOException;

}
